CXX=g++
CXXLAGS=-I -fpic -c
LFLAGS=-shared
OBJS= ExternalSensor.o SensorMessage.o SensorMessageUtils.o HTProperties.o HTPropertiesElement.o HTStringUtilities.o HTConverter.o HTException.o


libExternalSensor.so: $(OBJS)
	$(CXX) $(LFLAGS) $(OBJS) -o libExternalSensor.so

ExternalSensor.o: ExternalSensor.cpp
	$(CXX) $(CXXLAGS) ExternalSensor.cpp -o ExternalSensor.o

SensorMessage.o: SensorMessage.cpp
	$(CXX) $(CXXLAGS) SensorMessage.cpp -o SensorMessage.o

SensorMessageUtils.o: SensorMessageUtils.cpp
	$(CXX) $(CXXLAGS) SensorMessageUtils.cpp -o SensorMessageUtils.o

HTProperties.o: HTFramework/HTProperties.cpp
	$(CXX) $(CXXLAGS) HTFramework/HTProperties.cpp -o HTProperties.o

HTPropertiesElement.o: HTFramework/HTPropertiesElement.cpp
	$(CXX) $(CXXLAGS) HTFramework/HTPropertiesElement.cpp -o HTPropertiesElement.o

HTStringUtilities.o: HTFramework/HTStringUtilities.cpp
	$(CXX) $(CXXLAGS) HTFramework/HTStringUtilities.cpp -o HTStringUtilities.o

HTConverter.o: HTFramework/HTConverter.cpp
	$(CXX) $(CXXLAGS) HTFramework/HTConverter.cpp -o HTConverter.o

HTException.o: HTFramework/HTException.cpp
	$(CXX) $(CXXLAGS) HTFramework/HTException.cpp -o HTException.o
clean:
	rm -f $(OBJS)

.PHONY: clean
